﻿using System;
using System.Linq;
using LINQPad.Extensibility.DataContext;
using LINQPad.OpenAccess.Settings;

namespace LINQPad.OpenAccess.Services
{
    /// <summary>
    /// DataContext - UserInteractionService.
    /// </summary>
    public interface IDataContextUserInteractionService
    {
        /// <summary>
        /// Edits the configuration.
        /// </summary>
        /// <param name="connectionInfo">The connection info.</param>
        /// <param name="settings">The settings.</param>
        /// <returns>
        ///   <c>true</c> on success; otherwise, <c>false</c>.
        /// </returns>
        bool EditConfiguration( IConnectionInfo connectionInfo, DriverSettings settings );
    }
}
